package com.study.model.jdao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.study.model.pojo.Customer;
import com.study.model.pojo.Customerconsolidation;

public interface ICustomerconsolidationDAO  extends CrudRepository<Customerconsolidation,Integer>{

	
	/**
	 * 查询对应合并记录
	 * @return
	 */
	@Query("select b from Customerconsolidation b where b.customer1.cusId=?1")
	List<Customerconsolidation> findBytCuctIdes(Integer ins);

	
	Customerconsolidation findByCuctId(int custid);
	/**
	 * 添加客户共享转移记录
	 */
	public Customer save(Customer cust);
}
